import request from '@/utils/request'
import store from '@/store/index.js' // store
import auth from '@/plugins/auth.js'

//获取改造施工记录列表
export function listSlhgzsbwcqk(query) {
	return request({
		url: '/slhgz/slhgzsbwcqk/list',
		method: 'get',
		params: query
	})
}

// 查询改造施工记录详细
export function getSlhgzsbwcqk(id) {
	return request({
		url: '/slhgz/slhgzsbwcqk/' + id,
		method: 'get'
	})
}

// 新增改造施工记录
export function addSlhgzsbwcqk(data) {
	return request({
		url: '/slhgz/slhgzsbwcqk',
		method: 'post',
		data: data
	})
}

// 修改改造施工记录
export function updateSlhgzsbwcqk(data) {
	console.log({
		url: '/slhgz/slhgzsbwcqk',
		method: 'put',
		data: data
	})
	return request({
		url: '/slhgz/slhgzsbwcqk',
		method: 'put',
		data: data
	})
}

// 删除改造施工记录
export function delSlhgzsbwcqk(id) {
	return request({
		url: '/slhgz/slhgzsbwcqk/' + id,
		method: 'delete'
	})
}